<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 数据类型</title>
</head>
<body>
<h2>JavaScript 字符串值</h2>
<!--字符串（或文本字符串）是一串字符（比如 "Bill Gates"）。字符串被引号包围。您可使用单引号或双引号-->

<p>您可以在字符串内使用引号，只要这些引号与包围字符串的引号不匹配：</p>

<p id="demo"></p>

<script>
  var answer1 = "It's alright";             // 双引号内的单引号
  var answer2 = "He is called 'Bill'";    // 双引号内的单引号
  var answer3 = 'He is called "Bill"';    // 单引号内的双引号

  document.getElementById("demo").innerHTML =
          answer1 + "<br>" +
          answer2 + "<br>" +
          answer3;
</script>

</body>
</html>